package com.imooc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.pojo.Industry;
import com.imooc.vo.TopIdAndThirdIndustryListVO;

import java.util.List;

/**
 * <p>
 * 行业表 服务类
 * </p>
 *
 * @author liansen
 * @since 2023-03-28
 */
public interface IndustryService extends IService<Industry> {

    boolean getIndustryByName(String name);

    List<Industry> getTopList();

    List<Industry> getChildrenIndustryList(String id);

    Long getChildrenCounts(String id);

    List<Industry> getThirdList(String topId);

    String getTopIndustryIdByThirdIndustryId(String id);

    List<TopIdAndThirdIndustryListVO> getTopIdAndThirdList();
}
